//
//  HBBaseRequest.h
//  HeartBeat
//
//  Created by karong on 2023/8/23.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface HBBaseRequest : NSObject
/**
 POST請求,加密
 */
+ (void)postWithURLString:(NSString *)URLString
               parameters:(id)parameters
                  success:(void (^)(NSDictionary *responseDict))success
                  failure:(失败回调)failure;

/**
 POST請求，不加密
 */
+ (void)postAppleOrderWithURLString:(NSString *)URLString
                         parameters:(id)parameters
                            success:(void (^)(NSDictionary *dataDict))success
                            failure:(失败回调)failure;

/**
 上傳圖片
 */
+ (void)postWithURLString:(NSString *)URLString
               parameters:(id)parameters
                fileDatas:(NSArray<NSData *> *)fileDatas
                fileNames:(NSArray<NSString *> *)fileNames
                  success:(回调一个字典)success
                  failure:(失败回调)failure;
@end

NS_ASSUME_NONNULL_END
